//
//  AboutYDDViewController.m
//  YaDiuDiu
//
//  Created by 欧洪飞 on 2017/8/24.
//  Copyright © 2017年 jy. All rights reserved.
//

#import "AboutYDDViewController.h"

#import "AdviseViewController.h"
@interface AboutYDDViewController ()
@property (weak, nonatomic) IBOutlet UIView *adView;

@end

@implementation AboutYDDViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self showNav:@"关于丫丢丢"];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(click)];
    [_adView addGestureRecognizer:tap];
    //[self loadData];
}

- (void)click{
    AdviseViewController *advise = [[AdviseViewController alloc] init];
    [self.navigationController pushViewController:advise animated:YES];
}

- (void)loadData{
    NSMutableDictionary *parmas = [NSMutableDictionary dictionary];
    [parmas setObject:@"4C37FD0A840D62EDB414AD18F793F039" forKey:@"token"];
    [parmas setObject:@"1" forKey:@"id"];
    [parmas setObject:@"3" forKey:@"state"];
    
    [[AFHTTPSessionManager manager] POST:@"http://ydd.xtangguo.com/index.php/App/RideIndex/openGetOrder" parameters:parmas success:^(NSURLSessionDataTask *task, id responseObject) {
        NSLog(@"res:%@",responseObject);
    } failure:^(NSURLSessionDataTask *task, NSError *error) {
        NSLog(@"error:%@",error);
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
